package com.myfoon.view.context.helper;

import javax.el.ELContext;

import javax.faces.context.FacesContext;


public class BeanReceiver {
    public BeanReceiver() {
    }
    
    public static Object receiveBean(String name) {
        ELContext elContext = FacesContext.getCurrentInstance().getELContext();
        return FacesContext.getCurrentInstance().getApplication()
                        .getELResolver().getValue(elContext, null, name);
        
    }
}
